// "Replace with 'declaringJavaClass'" "true"
// API_VERSION: 1.6
// WITH_STDLIB
// ERROR: Unresolved reference: declaringJavaClass

fun <E : Enum<E>> foo(enum: E) {
    enum.<caret>declaringClass // shouldn't be available (KT-53805)
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.DeclaringJavaClassMigrationFix